export function MP() {
  return new Promise(function (resolve, reject) {
    window.init = function () {
      resolve(AMap)
    }
    var script = document.createElement("script");
    script.type = "text/javascript";
    script.src = "http://webapi.amap.com/maps?v=1.4.4&key=0ade70825a88f63063c743f559a4490a";
    script.onerror = reject;
    document.head.appendChild(script);
  })
}
